public class VarParameter2{
	public static void main(String [] args ){
		HaspMethod m = new HaspMethod();
		System.out.println(m.showScore("yy",25,58,69));
	}
}

class HaspMethod {
	public String showScore(String name, double ...scores){
		double totalScore = 0;
		for (int i = 0 ;i < scores.length; i++){
			totalScore += scores[i];
		}
		return name + "\t" + totalScore;
	}
}